#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "recordthread.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

public slots:
    void recordOver();
    void recordPlayOver();
private slots:

    void on_rbtn_tomcat_clicked(bool checked);

    void on_rbtn_minions_clicked(bool checked);

    void on_slider_ratio_valueChanged(int value);

    void on_rbtn_none_clicked(bool checked);

    void on_btn_close_mic_clicked();

    void on_btn_open_mic_clicked();

    void on_rbtn_realtime_clicked();

    void on_rbtn_record_clicked();

    void on_btn_record_start_clicked();

    void on_btn_record_play_clicked();

private:
    Ui::MainWindow *ui;

    RecordThread *m_RecordThread;

    void ConnectSlots();
    void OpenMic();
};
#endif // MAINWINDOW_H
